package com.far.game.xiuzhen.common.database.entity.Vo.admin;

import com.far.game.xiuzhen.common.database.entity.Servers;
import com.far.game.xiuzhen.common.database.entity.Skills;
import com.far.game.xiuzhen.common.enums.TrueOrFalseEnums;
import com.far.game.xiuzhen.common.enums.game.skill.PassiveTriggerEnums;
import com.far.game.xiuzhen.common.enums.game.skill.CombinUseOrderEnums;
import com.far.game.xiuzhen.common.enums.game.skill.UseSkillNeedPropEnums;
import com.far.game.xiuzhen.common.utils.EnumUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

public class SkillVo extends Skills {



    //组合技能 1 是 0 不是
    private String isCombineStr;
    //服务区
    private String domainTidStr;
    //是否被动技能
    private String passivityStr;
    //如果是被动技能，被动技能在什么时候触发(1 被攻击时 2 每回合触发 3 每秒触发)
    private String passivityTriggerOnTypeStr;

    // 1 随机出招，2 顺序出招<连招的意思>
    private String combineSkOrderStr;
    //消耗属性
    private  String expendPropStr;

    private  Integer partnerSkillTid;


    public Integer getPartnerSkillTid() {
        return partnerSkillTid;
    }

    public void setPartnerSkillTid(Integer partnerSkillTid) {
        this.partnerSkillTid = partnerSkillTid;
    }

    public String getExpendPropStr() {
        return expendPropStr;
    }

    public void setExpendPropStr(String expendPropStr) {
        this.expendPropStr = expendPropStr;
    }

    public String getPassivityTriggerOnTypeStr() {
        return passivityTriggerOnTypeStr;
    }

    public void setPassivityTriggerOnTypeStr(String passivityTriggerOnTypeStr) {
        this.passivityTriggerOnTypeStr = passivityTriggerOnTypeStr;
    }

    public String getCombineSkOrderStr() {
        return combineSkOrderStr;
    }

    public void setCombineSkOrderStr(String combineSkOrderStr) {
        this.combineSkOrderStr = combineSkOrderStr;
    }

    public String getPassivityStr() {
        return passivityStr;
    }

    public void setPassivityStr(String passivityStr) {
        this.passivityStr = passivityStr;
    }

    public String getIsCombineStr() {

        return isCombineStr;
    }

    public void setIsCombineStr(String isCombineStr) {
        this.isCombineStr = isCombineStr;
    }

    public String getDomainTidStr() {
        return domainTidStr;
    }

    public void setDomainTidStr(String domainTidStr) {
        this.domainTidStr = domainTidStr;
    }

    public SkillVo bulid() {
        this.setIsCombineStr(EnumUtil.nameOfVal(TrueOrFalseEnums.values(),getIsCombine()));
        this.setPassivityStr( EnumUtil.nameOfVal(TrueOrFalseEnums.values(),getPassivity()) );
        this.setPassivityTriggerOnTypeStr(EnumUtil.nameOfVal(PassiveTriggerEnums.values(),getPassivityTriggerOnType()));
        this.setCombineSkOrderStr( EnumUtil.nameOfVal(CombinUseOrderEnums.values(),getCombineSkOrder()));
        this.setExpendPropStr(EnumUtil.nameOfVal(UseSkillNeedPropEnums.values(),getExpendProp()));


        return this;
    }

}
